package com.lagou.sqlSession;

import com.lagou.pojo.Configuration;

import java.util.List;

public interface SqlSession {

    //查询所有
    <E> List<E> selectList(String statementid, Object... params);

    //根据条件查询单个
    <T> T selectOne(String statementid, Object... params);

    //为Dao接口生成代理实现类
    <T> T getMapper(Class<T> mapperClass);

    int update(String statement, Object parameter);

    Configuration getConfiguration();
}
